Skip to content

fix: replace deprecated MongoDB query/field params with explicit REST params#1321

Merged
Spiral-Memory merged 1 commit into
RocketChat:developfrom
Aryan-Verma-999:fix/remove-mongodb-query-params-clean
Jun 6, 2026
Merged

fix: replace deprecated MongoDB query/field params with explicit REST params#1321
Spiral-Memory merged 1 commit into
RocketChat:developfrom
Aryan-Verma-999:fix/remove-mongodb-query-params-clean

Conversation

@Aryan-Verma-999
Copy link
Copy Markdown
Contributor

@Aryan-Verma-999 Aryan-Verma-999 commented Jun 4, 2026

fix: replace deprecated MongoDB query/field params with explicit REST params

Acceptance Criteria fulfillment

  • Remove query and field params (raw MongoDB operators) from getMessages and getOlderMessages, these were removed in RC 8.x
  • Replace with explicit, supported REST params: oldest, latest, count, offset
  • Update callers (useFetchChatData, ChatBody) to drop the now-invalid query: { tmid: { $exists: false } } option

Video/Screenshots

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-1321 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

Copy link
Copy Markdown
Collaborator

@Spiral-Memory Spiral-Memory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Spiral-Memory Spiral-Memory merged commit f326bd0 into RocketChat:develop Jun 6, 2026
4 checks passed
github-actions Bot added a commit that referenced this pull request Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants